package com.itheima.mapper;

import com.itheima.pojo.Account;
import tk.mybatis.mapper.common.Mapper;


public interface AccountMapper extends Mapper<Account> {

    /*
    @Select("select * from account where id=#{id}")
    @Results({
            @Result(id = true,column = "id",property = "id"),
            @Result(column = "name",property = "name"),
            @Result(column = "money",property = "money"),
    })
    public Account findById(Integer id);

    @Insert("insert into account values(#{id},#{name},#{money})")
    public void save(Account account);
    */

    /*采用通用Mapper的方式：
//    方法体为空，通用Mapper已经整合了基本的方法
     */
}
